<%--
  Created by IntelliJ IDEA.
  User: WT-SUN
  Date: 2017/4/11
  Time: 9:03
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="accessory" uri="http://accessoryPackageTag.weitu.net" %>
<!doctype html>
<html>
<head>
    <title>编辑防护设施</title>
    <%@include file="/common/header.jspf" %>
    <script type="text/javascript" src="${ctx}/resources/js/occupationalHealth/facility/edit.js"></script>
</head>
<body>
<div class="menu-right" style="width:80px;">
    <a id="btn_save" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-save fa-lg">保存</a>
</div>
<div class="information">
    <div class="information-title">
        <p>防护设施基本信息</p>
        <a href="#"><img src="${ctx}/resources/themes/images/alias_03.png" width="18"></a>
    </div>
    <div class="cuttle">
        <form id="formEditFacility" method="POST">
            <input type="hidden" id="facid" name="id" value="${fact.id}"/>
            <div  style="clear: both">
                <div class="form_one" >
                    <label class="lable-style">设施名称:</label>
                    <input name="facilitieName" type="text" class="easyui-textbox" value="${fact.facilitieName}"  data-options="required:true"
                           style="width: 240px;">
                    <span>*</span>
                </div>
                <div class="form_one">
                    <label class="lable-style">数量:</label>
                    <input class="easyui-numberspinner formInput"  style="width: 240px;" value="0" name="facilitieNum" value="${fact.facilitieNum}"   data-options="required:true">
                    <span>*</span>
                </div>
                <div class="form_one">
                    <label class="lable-style">工作场所:</label>
                    <input name="workPlace" type="text" class="easyui-textbox" data-options="required:true" value="${fact.workPlace}"
                           style="width: 240px;">
                    <span>*</span>
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">编号:</label>
                    <input name="facilitieCode" type="text" class="easyui-textbox" value="${fact.facilitieCode==null?"":fact.facilitieCode}"  style="width: 240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">责任人:</label>
                    <input id="personLiableName" name="personLiableName" class="easyui-textbox" value="${fact.personLiableName}"  editable="false" required="true" validType="validSelect" style="width: 240px;">
                    <input type="hidden" id="personLiable" name="personLiable" value="${fact.personLiable}"/>
                    <span>*</span>
                </div>
                <div class="form_one">
                    <label class="lable-style">竣工日期:</label>
                    <input class="easyui-datebox" style="width: 240px;" editable="false" name="finalDate" value="${fact.finalDate==null?"":fact.finalDate}">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one" style="width: 720px;">
                    <label class="lable-style">危害因素:</label>
                    <input class="easyui-textbox" type="text" id="hazardFactorName" name="hazardFactorName" editable="false" value="${fact.hazardFactorName}"  required="required"  style="width:600px;">
                    <input type="hidden" id="hazardFactorId" name="hazardFactor" value="${fact.hazardFactor}"/>
                    <%--<input class="textbox-focused product" type="text" id="hazardFactorName" name="hazardFactorName" value="${fact.hazardFactorName}" required="required" autocomplete="off"  style="width:589px;height: 32px;margin-left: 0px;">
                    <input type="hidden" id="hazardFactorId" name="hazardFactor" value="${fact.hazardFactor}" />--%>
                    <span>*</span>
                </div>
                <div class="form_one">
                    <label class="lable-style">投资(万元):</label>
                    <input class="easyui-numberspinner formInput"  style="width: 240px;" value="${fact.investment}" name="investment" data-options="required:true">
                </div>
            </div>
            <div  style="clear: both">
                <div class="form_one">
                    <label class="lable-style">设施类型:</label>
                    <input id="facilitieTypeQuery" name="facilitieType" type="text" style="width: 240px;" data-options="required:true" value="${fact.facilitieType}">
                    <span>*</span>
                </div>
                <div class="form_one">
                    <label class="lable-style">使用情况:</label>
                    <input id="usageQuery" name="usage" type="text" style="width:240px;" data-options="required:true" value="${fact.usage}">
                    <span>*</span>
                </div>
                <div class="form_one">
                    <label class="lable-style">检修情况:</label>
                    <input id="overHaulQuery" name="overHaul" type="text" style="width:240px;" data-options="required:true" value="${fact.overHaul}">
                    <span>*</span>
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">状态:</label>
                    <input id="stateQuery" name="state" type="text" style="width:240px;" data-options="required:true" value="${fact.state}">
                    <span>*</span>
                </div>
                <div class="form_one">
                    <label class="lable-style">停用日期:</label>
                    <input class="easyui-datebox" style="width: 240px;" editable="false" name="endDate" value="${fact.endDate==null?"":fact.endDate}">
                </div>
                <div class="form_one">
                    <label class="lable-style">是完好:</label>
                    <input id="isIntactQuery" name="isIntact" type="text" style="width:240px;" data-options="required:true" value="${fact.isIntact}">
                    <span>*</span>
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one" style="width: 720px;height: 55px">
                    <label class="lable-style">控制效果:</label>
                    <input name="controlEffect" type="text" class="easyui-textbox" data-options="multiline:true,required:true" value="${fact.controlEffect}"
                           style="width: 600px;height: 50px"/>
                    <span>*</span>
                </div>
            </div>
        </form>
    </div>
</div>
<div class="information">
    <div class="information-title">
        <p>操作规程附件</p>
        <a href="#"><img src="${ctx}/resources/themes/images/alias_03.png" width="18"></a>
    </div>
    <accessory:accessorySimple permission="write" packageKey="facility" uploadUserId="${loginUser.id}" packageInfos="${accessoryList}"
                               accessoryType="txt,docx,doc,xls,xlsx,jpg,png"></accessory:accessorySimple>
</div>
</form>
</body>
</html>